 /**
 * 子模块路由
 * DHpai
 */

var router = function($urlRouterProvider, $stateProvider){

 	$stateProvider

    //企业申报
    .state('app.createUserInfo', {
        url: "/touristfunds/createUserInfo",
        views: {
            'main@' : {
                template : require('./views/createUserInfo.html'),
                controller : 'createUserInfo',
            }
        },
        resolve:{
            date2str: function (utilservice) {
              return utilservice.date2str;
            },
            getDate : function(utilservice){
              return utilservice.getDate;
            },
            str2date: function (utilservice) {
              return utilservice.str2date;
            }
            
        }
    })

    //区县旅游局审核企业
    .state('app.enterpriseAudit', {
      url: "/touristfunds/enterpriseAudit",
      views: {
          'main@' : {
              template : require('./views/enterpriseAudit.html'),
              controller : 'enterpriseAudit',
          }
      },
      resolve:{
          
      }
    }) 

    //企业详情
    .state('app.enterpriseDetail', {
      url: "/touristfunds/enterpriseDetail",
      views: {
          'main@' : {
              template : require('./views/enterpriseDetail.html'),
              controller : 'enterpriseDetail',
          }
      },
      resolve:{
          
      }
    })


    //市旅委资金发布规则列表
    .state('app.capitalRelease', {
        url: "/touristfunds/capitalRelease",
        views: {
            'main@' : {
                template : require('./views/capitalRelease.html'),
                controller : 'capitalRelease',
            }
        },
        resolve:{
            
        }
    })

    //市旅委法律法规发布
    .state('app.lawRegulation', {
        url: "/touristfunds/lawRegulation",
        views: {
            'main@' : {
                template : require('./views/lawRegulation.html'),
                controller : 'lawRegulation',
            }
        },
        resolve:{
            
        }
    })

    //市旅委政策法规信息发布列表
    .state('app.policieRegulationList', {
      url: "/touristfunds/policieRegulationList",
      views: {
          'main@' : {
              template : require('./views/policieRegulationList.html'),
              controller : 'policieRegulationList',
          }
      },
      resolve:{
          
      } 

    })
    
    //市旅委资金发布规则
    .state('app.fundReleaseList', {
      url: "/touristfunds/fundReleaseList",
      views: {
          'main@' : {
              template : require('./views/fundReleaseList.html'),
              controller : 'fundReleaseList',
          }
      },
      resolve:{
          
      }

    })

    //区县资金待审核列表
    .state('app.countryMoneyAudit', {
      url: "/touristfunds/countryMoneyAudit",
      views: {
          'main@' : {
              template : require('./views/countryMoneyAudit.html'),
              controller : 'countryMoneyAudit',
          }
      },
      resolve:{
          
      }

    })
   //区县资金待审核企业信息
    .state('app.countryMoneyBase', {
      url: "/touristfunds/countryMoneyBase",
      views: {
          'main@' : {
              template : require('./views/countryMoneyBase.html'),
              controller : 'countryMoneyBase',
          }
      },
      resolve:{   
      }
    })

   //市委资金待审核企业信息
    .state('app.cityMoneyAudit', {
      url: "/touristfunds/cityMoneyAudit",
      views: {
          'main@' : {
              template : require('./views/cityMoneyAudit.html'),
              controller : 'cityMoneyAudit',
          }
      },
      resolve:{   
      }
    })

   //市委终审资金待审核企业信息
    .state('app.cityTwoMoneyAudit', {
      url: "/touristfunds/cityTwoMoneyAudit",
      views: {
          'main@' : {
              template : require('./views/cityTwoMoneyAudit.html'),
              controller : 'cityTwoMoneyAudit',
          }
      },
      resolve:{   
      }
    })
   //区县资金待审核项目通过
    .state('app.countryMoneyAuditInfo', {
      url: "/touristfunds/countryMoneyAuditInfo",
      views: {
          'main@' : {
              template : require('./views/countryMoneyAuditInfo.html'),
              controller : 'countryMoneyAuditInfo',
          }
      },
      resolve:{   
      }
    })

    //区县资金待审核项目驳回
    .state('app.countryMoneyAuditInfoNo', {
      url: "/touristfunds/countryMoneyAuditInfoNo",
      views: {
          'main@' : {
              template : require('./views/countryMoneyAuditInfoNo.html'),
              controller : 'countryMoneyAuditInfoNo',
          }
      },
      resolve:{   
      }
    })
   //市委初审资金待审核项目通过
    .state('app.cityMoneyAuditInfo', {
      url: "/touristfunds/cityMoneyAuditInfo",
      views: {
          'main@' : {
              template : require('./views/cityMoneyAuditInfo.html'),
              controller : 'cityMoneyAuditInfo',
          }
      },
      resolve:{   
      }
    })

    //市委初审资金待审核项目驳回
    .state('app.cityMoneyAuditInfoNo', {
      url: "/touristfunds/cityMoneyAuditInfoNo",
      views: {
          'main@' : {
              template : require('./views/cityMoneyAuditInfoNo.html'),
              controller : 'cityMoneyAuditInfoNo',
          }
      },
      resolve:{   
      }
    })

    //区县资金待审核项目通过列表
    .state('app.countryMoneyYesAudit', {
      url: "/touristfunds/countryMoneyYesAudit",
      views: {
          'main@' : {
              template : require('./views/countryMoneyYesAudit.html'),
              controller : 'countryMoneyYesAudit',
          }
      },
      resolve:{   
      }
    })

    //区县资金待审核项目驳回列表
    .state('app.countryMoneyNoAudit', {
      url: "/touristfunds/countryMoneyNoAudit",
      views: {
          'main@' : {
              template : require('./views/countryMoneyNoAudit.html'),
              controller : 'countryMoneyNoAudit',
          }
      },
      resolve:{   
      }
    })

    //初审资金待审核项目通过列表
    .state('app.cityMoneyYesAudit', {
      url: "/touristfunds/cityMoneyYesAudit",
      views: {
          'main@' : {
              template : require('./views/cityMoneyYesAudit.html'),
              controller : 'cityMoneyYesAudit',
          }
      },
      resolve:{   
      }
    })

    //初审资金待审核项目驳回列表
    .state('app.cityMoneyNoAudit', {
      url: "/touristfunds/cityMoneyNoAudit",
      views: {
          'main@' : {
              template : require('./views/cityMoneyNoAudit.html'),
              controller : 'cityMoneyNoAudit',
          }
      },
      resolve:{   
      }
    })

    //终审资金项目通过列表
    .state('app.cityTwoMoneyYesAudit', {
      url: "/touristfunds/cityTwoMoneyYesAudit",
      views: {
          'main@' : {
              template : require('./views/cityTwoMoneyYesAudit.html'),
              controller : 'cityTwoMoneyYesAudit',
          }
      },
      resolve:{   
      }
    })

    //终审资金项目驳回列表
    .state('app.cityTwoMoneyNoAudit', {
      url: "/touristfunds/cityTwoMoneyNoAudit",
      views: {
          'main@' : {
              template : require('./views/cityTwoMoneyNoAudit.html'),
              controller : 'cityTwoMoneyNoAudit',
          }
      },
      resolve:{   
      }
    })

    //企业资金规则公告列表
    .state('app.fundRuleNoticeList', {
      url: "/touristfunds/fundRuleNoticeList",
      views: {
          'main@' : {
              template : require('./views/fundRuleNoticeList.html'),
              controller : 'fundRuleNoticeList',
          }
      },
      resolve:{
          
      }

    }) 
    // 企业资金申请列表
    .state('app.fundDeclareList', {
      url: "/touristfunds/fundDeclareList",
      views: {
          'main@' : {
              template : require('./views/fundDeclareList.html'),
              controller : 'fundDeclareList',
          }
      },
      resolve:{
          
      }

    }) 
    // 待审核企业列表
    .state('app.notAuditedEnterprise', {
      url: "/touristfunds/notAuditedEnterprise",
      views: {
          'main@' : {
              template : require('./views/notAuditedEnterprise.html'),
              controller : 'notAuditedEnterprise',
          }
      },
      resolve:{
          
      }

    }) 
    // 已通过企业列表
    .state('app.passedEnterprise', {
      url: "/touristfunds/passedEnterprise",
      views: {
          'main@' : {
              template : require('./views/passedEnterprise.html'),
              controller : 'passedEnterprise',
          }
      },
      resolve:{
          
      }

    }) 
    // 已驳回企业列表
    .state('app.dismissalEnterprise', {
      url: "/touristfunds/dismissalEnterprise",
      views: {
          'main@' : {
              template : require('./views/dismissalEnterprise.html'),
              controller : 'dismissalEnterprise',
          }
      },
      resolve:{
          
      }

    })
    // 企业查看政策法规列表
    .state('app.enterprisePolicieList', {
      url: "/touristfunds/enterprisePolicieList",
      views: {
          'main@' : {
              template : require('./views/enterprisePolicieList.html'),
              controller : 'enterprisePolicieList',
          }
      },
      resolve:{
          
      }

    })
    // 市旅委财务拨款审核列表
    .state('app.financialAuditList', {
      url: "/touristfunds/financialAuditList",
      views: {
          'main@' : {
              template : require('./views/financialAuditList.html'),
              controller : 'financialAuditList',
          }
      },
      resolve:{
          
      }

    })
    // 市旅委财务已拨款列表
    .state('app.financialAuditedList', {
      url: "/touristfunds/financialAuditedList",
      views: {
          'main@' : {
              template : require('./views/financialAuditedList.html'),
              controller : 'financialAuditedList',
          }
      },
      resolve:{
          
      }

    })
    // 日志管理
    .state('app.interface_log', {
      url: "/touristfunds/interface_log",
      views: {
          'main@' : {
              template : require('./views/interface_log.html'),
              controller : 'interface_log',
          }
      },
      resolve:{
          
      }

    })
    // 监管列表
    .state('app.superviselist', {
      url: "/touristfunds/superviselist",
      views: {
          'main@' : {
              template : require('./views/superviselist.html'),
              controller : 'superviselist',
          }
      },
      resolve:{
          
      }

    })


	;

};

module.exports = router;